package com.huanzhidadi.java8inaction.chapter7.observer;

public class NYTimes implements Observer {
    @Override
    public void notify(String msg) {
        if (null!=msg && msg.contains("money")) {
            System.out.println("Breaking news in NY! " + msg);
        }
    }
}
